ZF.add('jquery', { js : 'http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js' });
ZF.add('7k7k', { js : 'http://www.7k7k.com/js/v3/index2.js', requires : ['jquery'] });


Animal = ZF.create({

    options : { name : 'animal', type : 1 },

    init : function(options) {
        this.options = ZF.merge(this.options || {}, options);
        alert('Animal.init called');
    },

    name : function() {
        alert('Animal.name = "' + this.options.name + '" called');
    },

    type : function() {
        alert('Animal.type = "' + this.options.type + '" called');
    }

});



Cat = ZF.create(function(parent){

    var instance_count = 0;

    return {

        init : function(options) {
            parent.init.call(this, options);
            this.options.name = 'cat';
            this.options.sex = 0;
            this._index = ++instance_count;
        },

        sex : function() {
            alert('Cat.sex = "' + this.options.sex + '" called');
        },

        index : function() {
            alert('Cat.index = "' + this._index + '" called');
        }

    };

}, Animal, {

    staticEat : function(food) {
        alert('Cat.staticEat -> "' + food + '" called');
    }

});


ZF.ready(function(Z){
    /*
    alert( Z.toString() + ' : ' + ' domReady!!');
    alert(Z.every([6, 7, 2, 30, 20], function(v, k){ return v === 2 }));


    var aaa = {
       eeeeeeee : { ff: 'ffffffffff', g : { k : 111, m : 55555555} }
    };


    var bbb = ZF.extend(true, aaa , {
       aaaaaaaa : 1,
       bbbbbbbb : ['a', 'b'],
       cccccccc : 'fan',
       eeeeeeee : { ff: 2, g : { k : [111], fffff: 2222222} }
    }, {
       gggggggg : 322
    });

    alert(bbb.eeeeeeee.g.m);
    alert(bbb.eeeeeeee.g.k);
    alert(bbb.cccccccc);
    */
    
    /*
    window.ccc = new Animal();
    ccc.name();
    ccc.type();

    window.ddd = new Cat();
    ddd.name();
    ddd.type();
    ddd.sex();
    ddd.index();

    Cat.staticEat('mouse');*/

    Z.use('7k7k', function(ZZ){
        var d = $('.list > li > a');
        ZZ.log( d );
    });
});